<?php $this->headScript()->appendFile($this->JS_PATH . 'bootstrap.datepicker.js'); ?>
<?php $this->headScript()->appendFile($this->JS_PATH . 'installment.js'); ?>
<div id="installment-listing"></div>
<div class="container-fluid">
    <div id="pad-wrapper" class="form-page">
        <div class="row-fluid form-wrapper">
            <div class="span column">
                <?php if ($this->successmessage != ''): ?>
                    <div class="alert alert-success">
                        <i class="icon-ok-sign"></i> <?php echo $this->successmessage; ?>
                    </div>
                <?php endif; ?>

                <?php if (count($this->errorMessageArray) > 0): ?>
                    <div class="alert alert-error">
                        <?php foreach ($this->errorMessageArray as $erroValue): ?>

                            <div class="text-left">
                                <i class="icon-remove-sign"></i>
                                <?php echo $erroValue; ?>
                            </div>

                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                <form role="form" id="installmentfrm" name="installmentfrm"  action="" method="post">

                    <?php echo $this->form->ins_id; ?>
                    <div class="install_div">
                    <div class="field-box">
                        <label>Loan Name:<span class="error-star">*</span>:</label>
                        <div class="ui-select">
                            <?php echo $this->form->ins_ln_id; ?>
                        </div>
                    </div>
                    <div class="field-box">
                        <label>Customer Name:<span class="error-star">*</span>:</label>
                        <div class="ui-select install_customer_div">
                            <?php echo $this->form->ins_cus_id; ?>
                        </div>
                    </div>

                    
                    <div class="field-box">
                        <label>Amount (INR)<span class="error-star">*</span>:</label>
                        <?php echo $this->form->ins_amount; ?>
                    </div>

                    <div class="field-box">
                        <label>Credit Date<span class="error-star">*</span>:</label>
                        <?php echo $this->form->ins_creditdate; ?>
                    </div>

                    <div class="field-box">
                        <label>Uptil Date<span class="error-star">*</span>:</label>
                        <?php echo $this->form->ins_uptodate; ?>
                    </div>

                    <div class="field-box">
                        <label>Note:</label>
                        <?php echo $this->form->ins_note; ?>
                    </div>

                    <div class="field-box">
                        <label>Status<span class="error-star">*</span>:</label>
                        <div class="ui-select">
                            <?php echo $this->form->ins_status; ?>
                        </div> 
                    </div>

                    <br>

                    <div class="field-box">
                        <?php echo $this->form->Save; ?>
                        <?php echo $this->form->Reset; ?> 
                    </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
